package com.cover.pojo;

import java.math.BigDecimal;

public class Car {
    private int MsgType;
    private String Devno;
    private BigDecimal Timestamp;
    private String ReceiveTime;
    private int Frame;
    private ChannelInfo ChannelInfo;

    public Car() {
        ChannelInfo = new ChannelInfo();
    }

    public ChannelInfo getChannelInfo() {
        return ChannelInfo;
    }

    public void setChannelInfo(ChannelInfo channelInfo) {
        this.ChannelInfo = channelInfo;
    }

    public String getDevno() {
        return Devno;
    }

    public void setDevno(String devno) {
        Devno = devno;
    }

    public int getFrame() {
        return Frame;
    }

    public void setFrame(int frame) {
        Frame = frame;
    }

    public int getMsgType() {
        return MsgType;
    }

    public void setMsgType(int msgType) {
        MsgType = msgType;
    }

    public String getReceiveTime() {
        return ReceiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        ReceiveTime = receiveTime;
    }

    public BigDecimal getTimestamp() {
        return Timestamp;
    }

    public void setTimestamp(BigDecimal timestamp) {
        Timestamp = timestamp;
    }

//    @Override
//    public String toString() {
//        return "Car{" +
//                ChannelInfo.toString() +
//                ", 时间戳=" + Timestamp +
//                '}';
//    }

    @Override
    public String toString() {
        return Timestamp + "," + ChannelInfo + ","  + MsgType + ","  + Devno + ","  + Timestamp + ","  + ReceiveTime + ","  + Frame;
    }
}
